package com.huangwenshuo.futurestarschoolmanagement.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author huangwenshuo
 * @since 2021-03-20
 */

public class Comment implements Serializable {

private static final long serialVersionUID=1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 文本
     */
    private String content;

    /**
     * 评论者id
     */
    @TableField("fromId")
    private Integer fromId;

    /**
     * 活动id
     */
    @TableField("ownerId")
    private Integer ownerId;

    /**
     * 创建时间
     */
    private LocalDateTime date;

    /**
     * 点赞人数
     */
    @TableField("likeNum")
    private Integer likeNum;

    /**
     * 删除 0 否 1 是
     */
    private Boolean isDelete;

    /**
     * 评论者头像
     */
    @TableField("fromAvatar")
    private String fromAvatar;

    /**
     * 评论者昵称
     */
    @TableField("fromName")
    private String fromName;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getFromId() {
        return fromId;
    }

    public void setFromId(Integer fromId) {
        this.fromId = fromId;
    }

    public Integer getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Integer ownerId) {
        this.ownerId = ownerId;
    }

    public LocalDateTime getDate() {
        return date;
    }

    public void setDate(LocalDateTime date) {
        this.date = date;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }

    public String getFromAvatar() {
        return fromAvatar;
    }

    public void setFromAvatar(String fromAvatar) {
        this.fromAvatar = fromAvatar;
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    @Override
    public String toString() {
        return "Comment{" +
        "id=" + id +
        ", content=" + content +
        ", fromId=" + fromId +
        ", ownerId=" + ownerId +
        ", date=" + date +
        ", likeNum=" + likeNum +
        ", isDelete=" + isDelete +
        ", fromAvatar=" + fromAvatar +
        ", fromName=" + fromName +
        "}";
    }
}
